<%@ page contentType="text/html;charset=UTF-8" language="java"  isELIgnored="false" %>
<html>
<body>
<h2>Hello World!</h2>

<fieldset><%--简单类型--%>
    <a href="/user/test01.do?id=1&username=zhangsan">get请求(参数名与变量名一致)</a>

    <form action="/user/test02.do" method="post">
        <input type="hidden" name="id" value="1">
        <input type="hidden" name="username" value="zhangsan">
        <input type="submit" value="POST请求(参数名与变量名一致)">
    </form>

    <a href="/user/test03.do?user_id=1&username=zhangsan">get请求(参数名与变量名不一致)</a>

    <form action="/user/test04.do" method="post">
        <input type="hidden" name="user_id" value="1">
        <input type="hidden" name="username" value="zhangsan">
        <input type="submit" value="POST请求(参数名与变量名不一致)">
    </form>
</fieldset>

<fieldset><%--pojo类型(属性名不一致不行)--%>
    <a href="/user/test05.do?id=1&username=zhangsan">get请求:pojo类型</a>

    <form action="/user/test06.do" method="post">
        <input type="hidden" name="id" value="1">
        <input type="hidden" name="username" value="zhangsan">
        <input type="submit" value="POST请求:pojo类型">
    </form>
</fieldset>

<fieldset><%--复杂pojo类型(属性名不一致不行)--%>
    <a href="/user/test07.do?id=1&username=zhangsan&account.id=2&account.name=lisi">get请求:复杂类型</a>

    <form action="/user/test08.do" method="post">
        <input type="hidden" name="id" value="1">
        <input type="hidden" name="username" value="zhangsan">
        <input type="hidden" name="account.id" value="2">
        <input type="hidden" name="account.name" value="lisi">
        <input type="submit" value="POST请求:复杂类型">
    </form>
</fieldset>

<fieldset><%--数组类型--%>
    <a href="/user/test09.do?&args=mybatis&args=spring&args=springMVC">get请求:数组类型</a>

    <form action="/user/test10.do" method="post">
        <input type="hidden" name="args" value="mybatis">
        <input type="hidden" name="args" value="spring">
        <input type="hidden" name="args" value="springMVC">
        <input type="submit" value="POST请求:数组类型">
    </form>
</fieldset>

<fieldset><%--集合类型--%>
    <a href="/user/test11.do?&args=mybatis&args=spring&args=springMVC">get请求:list集合类型</a>

    <form action="/user/test12.do" method="post">
        <input type="hidden" name="args" value="mybatis">
        <input type="hidden" name="args" value="spring">
        <input type="hidden" name="args" value="springMVC">
        <input type="submit" value="POST请求:list集合类型">
    </form>
</fieldset>

</body>
</html>
